var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var users_schema = new Schema({
    username: String,
    password: String,
    age: Number,
    time: Date,
    mobile: String
})


var mvs_schema = new Schema({
    "genres": Array,
    "casts": Array,
    "directors": Array,
    "rating": Object,
    "title": String,
    "collect_count": Number,
    "original_title": String,
    "subtype": String,
    "year": String,
    "images": Object,
    "alt": String,
    "id": String
})


var lists_schema = new Schema({
    title: String,
    content: String,
    author: String,
    time: Date,
    mid: String,
    movie: Object,
    answer: Array
})
exports.Users = mongoose.model("users", users_schema)
exports.Mvs = mongoose.model("movies", mvs_schema)
exports.Lists = mongoose.model("lists", lists_schema)
var prousers1_schema = new Schema({
    mobile:String,
    username:String,
    password:String,
    roleid:String,
    time:Date,
    name:String,
    region:String,
    mall:String,
    qqnum:String,
    category:String,
    category1:String,
    category2:String,
 })
 
exports.Prouser = mongoose.model("prousers1",prousers1_schema);


//提交项目
var xiangmu1_schema = new Schema({
    mobile:String,
    username:String,
    time:Date,
    title:String,
    lianjie:String,
    category:String,
    reply:String,
    miaoshu:String,
    jishu:String,
    nandian:String,
    fenhsu:String,
    code:String,
    score:String
})
exports.Xiangmu = mongoose.model("xiangmu1",xiangmu1_schema);


//校区管理仓库
var xiaoqu1_schema = new Schema({
    name:String,
    region:String,

})
exports.Xiaoqu = mongoose.model("xianqu1",xiaoqu1_schema);


//学科管理仓库
var xueke1_schema = new Schema({
    name:String,
    region:String,

})
exports.Xueke = mongoose.model("xueke1",xueke1_schema);


//班级管理仓库
var banji1_schema = new Schema({
    name:String,
    region:String,
    
})
exports.Banji = mongoose.model("banji1",banji1_schema);


//项目管理仓库
var xuekexiangmu1_schema = new Schema({
    name:String,
    region:String,
    xiangmunum:String,
    
})
exports.Xuekexiangmu = mongoose.model("xuekexiangmu1",xuekexiangmu1_schema);